cmake_minimum_required( VERSION 3.10 )
project( rtsp_daemon )

set( CMAKE_C_COMPILER arm-openwrt-linux-gcc )
set( CMAKE_CXX_COMPILER arm-openwrt-linux-g++ )


set( SRCS   ./src/AW_H264VideoServerMediaSubsession.cpp
            ./src/AW_H264VideoSource.cpp
            ./src/DynamicRTSPServer.cpp
            ./src/live555MediaServer.cpp)
set( CMAKE_VERBOSE_MAKEFILE OFF )

include_directories( ./components/include/BasicUsageEnvironment/include/
                    ./components/include/groupsock/include/
                    ./components/include/liveMedia/include/
                    ./components/include/mediaServer/include/
                    ./components/include/UsageEnvironment/include/
                    ./components/include/
                    ./inc )

add_executable( ${PROJECT_NAME} ${SRCS} )

target_link_libraries( ${PROJECT_NAME} -L../components/lib
                                        libliveMedia.a
                                        libgroupsock.a
                                        libBasicUsageEnvironment.a
                                        libUsageEnvironment.a
                                        )

target_link_libraries( ${PROJECT_NAME} libssl.so libcrypto.so)



